﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:Hangout_Client_Core_Location="clr-namespace:Hangout.Client.Core.Location"
	mc:Ignorable="d"
	x:Class="Hangout.Client.Controls.User.UserListBox"
	d:DesignWidth="480" d:DesignHeight="800">

	<UserControl.Resources>
		<DataTemplate x:Key="DashboardListboxItemTemplate">
			<Grid Width="480">
				<Image HorizontalAlignment="Left" Width="75" Height="75" Margin="8,8,0,17" Source="{Binding User.ProfilePicURL}" VerticalAlignment="Center"/>
				<TextBlock Margin="92,8,8,0" TextWrapping="Wrap" Text="{Binding User.Name}" VerticalAlignment="Top" Foreground="{StaticResource YellowBrush}" FontSize="24" Height="33"/>
				<TextBlock HorizontalAlignment="Left" Margin="92,41,0,8" TextWrapping="Wrap" Text="{Binding User.Status}" FontSize="16" Width="388"/>
			</Grid>
		</DataTemplate>
	</UserControl.Resources>

	<StackPanel x:Name="LayoutRoot" Background="Transparent">
		<TextBlock x:Name="NoLBL" TextWrapping="Wrap" Text="Oops. Its lonely in here." HorizontalAlignment="Left" Margin="14,0,0,0" Foreground="{StaticResource YellowBrush}" FontSize="26.667" Visibility="Collapsed"/>
		<ListBox x:Name="UsersLB" Margin="0" ItemTemplate="{StaticResource DashboardListboxItemTemplate}" SelectionChanged="UsersLB_SelectionChanged" Visibility="Collapsed" ScrollViewer.VerticalScrollBarVisibility="Disabled"/>
	</StackPanel>
</UserControl>